package com.zzu.model.service;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * @description:
 * @author: bytedance
 * @date: 2021-05-08 14:34
 *
 */
public interface RegionService {


//    @GetMapping("/getRegionCodeByTwn/{twn}")
//    String getRegionCodeByTwn(@PathVariable String twn);

    /**
     * 通过区/县名返回地区代码
     * @param twn
     * @return
     */
    @GET("regionService/getRegionCodeByTwn/{twn}")
    Call<String> getRegionCodeByTwn(@Path("twn") String twn);

}
